<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('配置信息列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table" data-mobile-responsive="true"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('media:tencentInfo:edit')}]];
    var prefix = ctx + "media/tencentInfo";

    $(function() {
        var options = {
            url: prefix + "/list",
            updateUrl: prefix + "/edit/{id}",
            modalName: "配置信息",
            columns: [{
                    field : 'id',
                    title : '主键',
                    visible: false
                },
                {
                    field : 'tencentUser',
                    title : '腾讯视频账号'
                },
                {
                    field : 'vuid',
                    title : 'vuid'
                },
                {
                    field : 'vtoken',
                    title : 'vtoken'
                },
                {
                    field : 'auditDeptName',
                    title : '审核部门名称(按序、逗号隔开)'
                },
                {
                    field : 'pushResultAddress',
                    title : '审核结果推送地址'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        return actions.join('');
                    }
                }]
        };
        $.table.init(options);
    });
</script>
</body>
</html>